#include "widget.h"
#include "ui_widget.h"
#include <QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    Qt::FocusPolicy focus = ui->pushButton->focusPolicy();
    qDebug()<<focus;
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    setStyleSheet("background-color:rgb(240,240,240)");
    ui->lineEdit->setStyleSheet("background-color:white;color:black");
    ui->pushButton->setStyleSheet("color:black");
    ui->pushButton_2->setStyleSheet("color:black");
}

void Widget::on_pushButton_2_clicked()
{
    setStyleSheet("background-color:black");
    ui->lineEdit->setStyleSheet("background-color:black; color:white");
    ui->pushButton->setStyleSheet("color:white");
    ui->pushButton_2->setStyleSheet("color:white");
}
